<!-- Teacher_Manage.html -->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>管理</title>
		<link rel="stylesheet" href="../../css/base.css">
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
	</head>
	<body>
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color">
			<a class="base_left_item" href="#" onclick="backIndex()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span>管理</span>
		</div>
	</body>
	<script src="../../script/jquery.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript">
		apiready = function() {
			setupNotifi();
			setupSubFrame();
			//			if (api.pageParam.stype == '0') {
			//				setupSubFrame();
			//			}
		}
		function setupNotifi() {
			api.addEventListener({
				name : 'showManagementFrameNotifi'
			}, function(ret, err) {
				showSubFrame();
			});
			api.addEventListener({
				name : 'hideManagementFrameNotifi'
			}, function(ret, err) {
				hideSubFrame();
			});
		}

		function setupSubFrame() {
			var y = $('.base_navigation_bar').height() + 22;
			var h = api.winHeight - y ;
			api.openFrame({
				name : 'Teacher_ManagementPage',
				url : 'Teacher_ManagementPage.html',
				rect : {
					x : 0,
					y : y,
					w : 'auto',
					h : h
				},
				bounces : false,
				vScrollBarEnabled : true,
				hScrollBarEnabled : false
			});
		}

		function showSubFrame() {
			setupSubFrame();
			api.setFrameAttr({
				name : 'Teacher_ManagementPage',
				hidden : false
			});
		}

		function hideSubFrame() {
			api.setFrameAttr({
				name : 'Teacher_ManagementPage',
				hidden : true
			});
		}
	</script>
</html>